package cn.kgc.tangcco.tcbd1011.no13.type.service.impl;

import java.util.List;

import cn.kgc.tangcco.tcbd1011.no13.base.properties.factory.PropertiesFactory;
import cn.kgc.tangcco.tcbd1011.no13.base.util.Utils;
import cn.kgc.tangcco.tcbd1011.no13.type.dao.TypeDao;
import cn.kgc.tangcco.tcbd1011.no13.type.entity.Type;
import cn.kgc.tangcco.tcbd1011.no13.type.service.TypeService;

public class TypeServiceImpl implements TypeService {

	private TypeDao tdao;
	public TypeServiceImpl() {
		tdao=(TypeDao) PropertiesFactory.getInstance(Utils.TYPEDAO);
	}
	@Override
	public List<Type> queryAllType() {
		return tdao.queryAllType();
	}

	@Override
	public Type detatilType(int pk) {
		return tdao.detatilType(pk);
	}
	@Override
	public int addType(Type type) {
		return tdao.addType(type);
	}
	@Override
	public int updateType(Type type) {
		return tdao.updateType(type);
	}
	@Override
	public int deleteType(int pk) {
		return tdao.deleteType(pk);
	}
	@Override
	public int queryCountType() {
		return tdao.queryCountType();
	}

}
